<?php

namespace App\Http\Controllers\Backend;

use App\Http\Repositories\TagRepository;
use App\Http\Controllers\Controller;

class TagController extends Controller
{
    protected $tagRepository;

    public function __construct(TagRepository $tagRepository)
    {
        $this->tagRepository = $tagRepository;
    }

    /**
     * 标签列表
     * @return \Illuminate\Http\JsonResponse
     */
    public function index()
    {
        return responseResult($this->tagRepository->getIndex(), self::SUCCESS_CODE);
    }
}
